package com.example.sharingjdbc;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"com.example.sharingjdbc"})
@Slf4j
public class SharingJdbcApplication {

    public static void main(String[] args) {
        log.info("开始启动...");
        try {
            SpringApplication.run(SharingJdbcApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
            log.info("启动出错：{}...",e.getMessage());
        }
        log.info("启动完成...");
    }

}
